import pygame,sys
from pygame.locals import *
pygame.init()
pygame.mouse.set_cursor(pygame.cursors.broken_x)
canvas=pygame.display.set_mode((400,300))
pygame.display.set_caption("Cursor")
while True:
    for event in pygame.event.get():
        if(event.type == QUIT):
            pygame.quit()
            sys.exit(1)